package com.sys.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sys.common.annotation.Excel;
import com.sys.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 第三方授权对象 sys_user_third_auth
 *
 * @author LGY
 * @date 2025-04-18
 */
@Data
@Accessors(chain = true)
@TableName("sys_user_third_auth")
@Schema(description = "第三方授权对象")
public class SysUserThirdAuth extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 授权ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "授权ID")
    private String id;
    /**
     * 第三方平台用户唯一ID
     */
    @Excel(name = "第三方平台用户唯一ID")
    @TableField(value = "uuid")
    @Schema(description = "第三方平台用户唯一ID")
    private String uuid;
    /**
     * 系统用户ID
     */
    @Excel(name = "系统用户ID")
    @TableField(value = "user_id")
    @Schema(description = "系统用户ID")
    private String userId;
    /**
     * 用户来源
     */
    @Excel(name = "用户来源")
    @TableField(value = "source")
    @Schema(description = "用户来源")
    private String source;
}